package com.garlic.face.jlf.transaction.dataInterfaces;

import com.alibaba.fastjson.annotation.JSONField;

public class PayRequest {
    @JSONField(name = "INTERFACETYPE")
    private String INTERFACETYPE;
    private String transnmbr;
    private String posno;
    //payflag,0-自助侧已完成支付；1-需要POS去扣款
    private String payflag;
    //支付方式编码。0-Cash；1-Bank Card；2-Coop Card；3-Mini Card
    private String keyindex;
    private String amount;
    private String payid;
    private String paymm;
    //验证码,储值卡支付使用
    private String verifycode;
    private String reference;
    private String trace;
    private String termid;
    private String mchtid;
    private String batchno;
    private String yftotal;
    //flag=0 立即支付
    //flag=1 需要顾客确认，当 payno=02时，如果卡余额足够，立即支付；如果卡余额不足时，需要顾客确认。
    //flag=2 卡余额不足，需要顾客确认，顾客确认后发送“2”
    private String flag;
    //raw contents from scanner,仅keyindex为3的时候有效
    private String scanned;

    @JSONField(name="FacescanToken")
    private String FacescanToken;//刷脸的token

    public String getFacescanToken() {
        return FacescanToken;
    }

    public void setFacescanToken(String facescanToken) {
        FacescanToken = facescanToken;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public void setPosno(String posno) {
        this.posno = posno;
    }

    public void setINTERFACETYPE(String INTERFACETYPE) {
        this.INTERFACETYPE = INTERFACETYPE;
    }

    public void setTransnmbr(String transnmbr) {
        this.transnmbr = transnmbr;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public void setBatchno(String batchno) {
        this.batchno = batchno;
    }

    public void setKeyindex(String keyindex) {
        this.keyindex = keyindex;
    }

    public void setMchtid(String mchtid) {
        this.mchtid = mchtid;
    }

    public void setPayflag(String payflag) {
        this.payflag = payflag;
    }

    public void setPayid(String payid) {
        this.payid = payid;
    }

    public void setPaymm(String paymm) {
        this.paymm = paymm;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public void setScanned(String scanned) {
        this.scanned = scanned;
    }

    public void setTermid(String termid) {
        this.termid = termid;
    }

    public void setTrace(String trace) {
        this.trace = trace;
    }

    public void setVerifycode(String verifycode) {
        this.verifycode = verifycode;
    }

    public void setYftotal(String yftotal) {
        this.yftotal = yftotal;
    }

    @Override
    public String toString() {
        return "PayRequest{" +
                "INTERFACETYPE='" + INTERFACETYPE + '\'' +
                ", transnmbr='" + transnmbr + '\'' +
                ", posno='" + posno + '\'' +
                ", payflag='" + payflag + '\'' +
                ", keyindex='" + keyindex + '\'' +
                ", amount='" + amount + '\'' +
                ", payid='" + payid + '\'' +
                ", paymm='" + paymm + '\'' +
                ", verifycode='" + verifycode + '\'' +
                ", reference='" + reference + '\'' +
                ", trace='" + trace + '\'' +
                ", termid='" + termid + '\'' +
                ", mchtid='" + mchtid + '\'' +
                ", batchno='" + batchno + '\'' +
                ", yftotal='" + yftotal + '\'' +
                ", flag='" + flag + '\'' +
                ", scanned='" + scanned + '\'' +
                ", FacescanToken='" + FacescanToken + '\'' +
                '}';
    }

    public String getINTERFACETYPE() {
        return INTERFACETYPE;
    }

    public String getTransnmbr() {
        return transnmbr;
    }

    public String getPosno() {
        return posno;
    }

    public String getPayflag() {
        return payflag;
    }

    public String getKeyindex() {
        return keyindex;
    }

    public String getAmount() {
        return amount;
    }

    public String getPayid() {
        return payid;
    }

    public String getPaymm() {
        return paymm;
    }

    public String getVerifycode() {
        return verifycode;
    }

    public String getReference() {
        return reference;
    }

    public String getTrace() {
        return trace;
    }

    public String getTermid() {
        return termid;
    }

    public String getMchtid() {
        return mchtid;
    }

    public String getBatchno() {
        return batchno;
    }

    public String getYftotal() {
        return yftotal;
    }

    public String getFlag() {
        return flag;
    }

    public String getScanned() {
        return scanned;
    }
}
